<?php
class M_ACL_Athorization extends MVC_Model_Base implements ACL_Athorization_Interface {

    /**
     * @var M_ACL_User
     */
    private $_objUser = null;


    private $_objAthorizationData = null;


    public function setAthorizationData(ACL_AthorizationData_Interface $objData) {
        $this->_objAthorizationData = $objData;
    }

    /**
     * @return ACL_User_Interface
     */
    public function getUser() {
        if (is_null($this->_objUser)) {
            $this->_objUser = $this->getModel('ACL_User');
            if (!is_null($this->_objAthorizationData)) {
                $this->_objUser->athorization($this->_objAthorizationData);
            }
        }
        return $this->_objUser;
    }

}